package com.zlx.sharelive.utils;

import android.widget.Toast;

import com.zlx.sharelive.MyApp;

public class NullTokenUtils {

    public static void isNullToken(int code, String msg) {
        if (code == 700) {
            Toast.makeText(MyApp.getInstance(), "账号失效，请重新登陆", Toast.LENGTH_SHORT).show();
            MyApp.getInstance().backToLogin();
        } else {
            Toast.makeText(MyApp.getInstance(), msg, Toast.LENGTH_SHORT).show();
        }
    }
}
